// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class GeneratorTT : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<GeneratorTT, MasterDbContextLocator>
    {

        public int ID { get; set; }
        public string GeneratorTTID { get; set; }
        public string GeneratorTTName { get; set; }
        public string GeneratorTTCode { get; set; }
        public string POWER { get; set; }
        public string FUEL { get; set; }
        public DateTime? CreateTime { get; set; }
        public DateTime? UpdateTime { get; set; }
    
        public void Configure(EntityTypeBuilder<GeneratorTT> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasIndex(e => e.GeneratorTTID, "Only_GeneratorTTID")
                    .IsUnique();

                entityBuilder.Property(e => e.CreateTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.FUEL).HasMaxLength(50);

                entityBuilder.Property(e => e.GeneratorTTCode).HasMaxLength(100);

                entityBuilder.Property(e => e.GeneratorTTID).HasMaxLength(100);

                entityBuilder.Property(e => e.GeneratorTTName).HasMaxLength(100);

                entityBuilder.Property(e => e.POWER).HasMaxLength(50);

                entityBuilder.Property(e => e.UpdateTime).HasColumnType("datetime");
        }

    }
}

